﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeDuce.IDAL;
using System.Data;

namespace SeDuce.BLL
{
    public class TypeBLL
    {
        private static readonly ITypeDAL dal = SeDuce.DALFactory.DataAccess.CreateTypeDAL();

        public DataTable GetTypes()
        {
            return dal.GetTypes();
        }

        public bool UpdateType(SeDuce.Model.Type type)
        {
            return dal.UpdateType(type);
        }

        public bool UpdateTypes(List<Model.Type> types)
        {
            return dal.UpdateTypes(types);
        }

        public bool InsertType(SeDuce.Model.Type type)
        {
            return dal.InsertType(type);
        }

        public bool DeleteType(int brandID)
        {
            return dal.DeleteType(brandID);
        }
    }
}
